package com.gt.web.srv.utils;

/**
 * 常量配置类
 *
 * @author Yu Chaohua
 * @date 2024/5/18 17:28
 */
public class GtConstants {


    /**
     * 登出用户的key
     */
    public static final String REDIS_SESSION_LOGOUT_KEY = "ag_session_logout_key";

    /**
     * 用户的token的key
     */
    public static final String REDIS_SESSION_KEY = "ag_session_key_";

    /**
     * 用户的token的key
     */
    public static final String REDIS_USER_KEY = "login_user_k_";

    /**
     * app用户的token key
     */
    public static final String REDIS_APP_SESSION_KEY = "ag_app_session_key_";

    /**
     * openId对应的unionId
     */
    public static final String REDIS_OPENID_TO_UNION_ID = "ag_openid_unionId_";

    /**
     * 存储用户对象
     */
    public static final String REDIS_OPEN_ID_USER_KEY = "redis_openid_user_key_";

    /**
     * 存储用户对象
     */
    public static final String REDIS_UID_USER_KEY = "redis_uid_user_key_";

    public static final String REDIS_PRODUCT_SEARCH_KEY = "redis_product_search_key_";

    /**
     * 默认失效8小时
     */
    public static final long REDIS_SESSION_TIMEOUT = 60 * 8;

    /**
     * 默认失效30分钟
     */
    public static final long REDIS_TIMEOUT = 30;

    /**
     * 默认6个月
     */
    public static final long REDIS_SESSION_APP_TIMEOUT = 60 * 24 * 180L;

    /**
     * 用户token关系
     */
    public static final String USER_NAME_CODE = "userName";

    /**
     * appid token关系
     */
    public static final String APP_ID_CODE = "appId";

    /**
     * nid token关系
     */
    public static final String NID_CODE = "nid";

    /**
     * openId token关系
     */
    public static final String OPEN_ID_CODE = "openId";

    /**
     * 高亭微信小程序环境版本 KEY
     */
    public static final String WX_MP_ENV_VERSION = "wxMpEnvVersion";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

}
